package com.shengyin.ec.model.dao.goods;

import java.util.List;

import com.shengyin.ec.model.dao.BaseDao;
import com.shengyin.ec.model.entity.Goods;

public interface GoodsDao extends BaseDao<Goods> {

	public List<Goods> getAllGoodsList(int offset, int pagesize);

	//public Long getTotal();

	public List<Goods> getAllGoodsList();

	public void deleteSelectedGoods(Long[] ids);

	public List<Goods> getGoodsList(int start, int end);

	public List<Goods> getGoodsListByKeyword(String keyword, int start, int end);

	public List<Goods> getGoodsListByKeyword(String prop, String keyword,
			int start, int end);

	public List<Goods> getGoodsListByType(String typename, int start, int end);
	
	public List<Goods> getGoodsListByCompanyId(long id);

	//add by lcl 2012-3-17
	public Goods getGoodsByProductId(long productId);

	
	//add by wql 20120319
	public List<Goods> getGoodsListByType(String typeName);
	public Long getTotal();
	
	//add by wql 2012-3-25
	public List<Goods> checkGoodNameExist(String productName);
	
	
	public List<Goods> getGoodsList(long companyid,int offset, int pagesize);
	public void createGoods(Goods goods,long companyid);

	public List<Goods> getGoodsListByChainCompanyId(long id);

	public List<Goods> getGoodsListBySelected(Long[] idsl);
	
    public List<Goods> getGoodsListByCondition(int type,String keyword,int offset,int pageSize);
	
	public List<Goods> getGoodsListByCondition(int type,String keyword);
	
	public void changeImage(Long id,String image);
}